package com.demos.springcloud.consumer02_feign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@Service
@FeignClient("postprovider")
public interface Provider1ServiceInterface {
    @PostMapping("post/data")
    Map<String, Object> service1(@RequestParam("id") String id);
}
